/* Console example — declarations of command registration functions.

   This example code is in the Public Domain (or CC0 licensed, at your option.)

   Unless required by applicable law or agreed to in writing, this
   software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
   CONDITIONS OF ANY KIND, either express or implied.
*/
#pragma once
#include <stdio.h>
#define SET_WIFI "wifi_set"

// Register system functions
void register_system();
void initialise_wifi();
// Register WiFi functions
void register_wifi();

//注册 sntp服务
void register_sntp();
void initialize_sntp(void);
void obtain_time(void);

static int wifi_join(const char* ssid, const char* pass, int timeout_ms);
int auto_wifi();

void smartconfig_example_task(void * parm);
